gh-144125: email: verify headers are sound in BytesGenerator
authorSeth Michael Larson <seth@python.org>
Fri, 23 Jan 2026 14:59:35 +0000 (08:59 -0600)
committerAndrej Shadura <andrewsh@debian.org>
Sun, 25 Jan 2026 13:37:52 +0000 (14:37 +0100)
commit213c7563a1b81e567a4c455f95d840b8c106d48b
tree213ae2017f49f2766c12bac099f94ac649716e62
parentcf0be5c68ca9003a6eec9791ea581bc864f2a262
gh-144125: email: verify headers are sound in BytesGenerator

Co-authored-by: Denis Ledoux <dle@odoo.com>
Co-authored-by: Denis Ledoux <5822488+beledouxdenis@users.noreply.github.com>
Co-authored-by: Petr Viktorin <302922+encukou@users.noreply.github.com>
Co-authored-by: Bas Bloemsaat <1586868+basbloemsaat@users.noreply.github.com>
Origin: backport, https://github.com/python/cpython/commit/052e55e7d44718fe46cbba0ca995cb8fcc359413

Gbp-Pq: Name CVE-2026-1299.patch
Lib/email/generator.py
Lib/test/test_email/test_generator.py
Lib/test/test_email/test_policy.py
Misc/NEWS.d/next/Security/2026-01-21-12-34-05.gh-issue-144125.TAz5uo.rst [new file with mode: 0644]